import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const DASHBOARD: AppRouteRecordRaw = {
  path: '/financial',
  name: 'financial',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.financial.statistics',
    requiresAuth: true,
    customIcon: true,
    icon: 'icon-statistics',
    roles: ['admin'],
    order: 4,
  },
  children: [
    {
      path: 'employees-consum',
      name: 'employeesConsum',
      component: () => import('@/views/financial/employees-consum.vue'),
      meta: {
        locale: 'menu.financial.employees.consum',
        requiresAuth: true,
        roles: ['admin'],
      },
    },
    {
      path: 'product-consum',
      name: 'productConsum',
      component: () => import('@/views/financial/product-consum.vue'),
      meta: {
        locale: 'menu.financial.product.consum',
        requiresAuth: true,
        roles: ['admin'],
      },
    },
  ],
};

export default DASHBOARD;
